package com.cn.study.service;

import java.util.Map;
import java.util.concurrent.TimeUnit;

/**
 * @author mjy
 * @date 2021/12/29
 * @description
 */
public interface GatwayRedisService {

    void setKey(String key, String value, long expireTime, TimeUnit timeUnit);

    void setHash(String key, Map<String, Object> map, long expireTime, TimeUnit timeUnit);

    Map<String, Object> getHashValue(String key);

    String getValue(String key);

    boolean hasKey(String key);
}
